/* ==========================================================================
    (feature-index.css)
========================================================================== */

.feature-top {
  padding: 12px 0 60px;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.feature-top * { box-sizing: border-box; }
.feature-top a { text-decoration: none; color: inherit; }
.feature-top img { display: block; width: 100%; }

/* SEO/アクセシビリティ用 視覚的非表示 */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 1. ピックアップ特集 */
.feature-top__pickup { margin-top: 0; }
.feature-top__pickup-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.feature-top__pickup-main {
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}
.feature-top__pickup-sub {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  aspect-ratio: 682 / 380;
}
.feature-top__pickup-main img,
.feature-top__pickup-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.feature-top__pickup-main:hover img,
.feature-top__pickup-sub:hover img {
  transform: scale(1.02);
}

.feature-top__pickup-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff000, #ffb700);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: opacity .2s ease;
  pointer-events: none;
}
.feature-top__pickup-badge-sub {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff000, #ffb700);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: opacity .2s ease;
  pointer-events: none;
}
.feature-top__pickup-main:hover .feature-top__pickup-badge,
.feature-top__pickup-sub:hover .feature-top__pickup-badge-sub {
  opacity: 0;
}

/* セクション共通 */
.feature-top__section { margin-top: 72px; }
.feature-top__section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.feature-top__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -.01em;
}
.feature-top__section-lead {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* グリッドレイアウト */
.feature-top__cards-col6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.feature-top__cards-col5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.feature-top__cards-col4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }

/* ショッピングカード */
.feature-top__card-imgonly {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  aspect-ratio: 682 / 380;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-top__card-imgonly:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.feature-top__card-imgonly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-top__card-withtext {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-top__card-withtext:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.feature-top__card-withtext .card-img {
  aspect-ratio: 682 / 380;
  overflow: hidden;
}
.feature-top__card-withtext .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-top__card-withtext .card-txt {
  padding: 7px 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #222;
}

/* 統合カテゴリセクション */
.feature-top__categories { display: flex; flex-direction: column; gap: 48px; }
.feature-top__category { padding: 0; background: transparent; }

.feature-top__category-title {
  position: relative;
  padding-left: 12px;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
}
.feature-top__category-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
}
.feature-top__category--food .feature-top__category-title::before { background: #d94a42; }
.feature-top__category--goods .feature-top__category-title::before { background: #3971c9; }
.feature-top__category--travel .feature-top__category-title::before { background: #40834d; }

.feature-top__tag-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  letter-spacing: .02em;
}
.feature-top__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-top__tag-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f4f4f6;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  transition: background .2s ease, color .2s ease;
}
.feature-top__tag-item:hover { background: #e8e8ed; color: #000; }
.feature-top__tag-item--all { background: #fdf0f0; color: #d94a42; font-weight: 800; }
.feature-top__tag-item--all:hover { background: #fbe2e2; color: #b82e26; }
.feature-top__category--goods .feature-top__tag-item--all { background: #f0f4fc; color: #3971c9; }
.feature-top__category--goods .feature-top__tag-item--all:hover { background: #e0eaeb; color: #2854a8; }
.feature-top__category--travel .feature-top__tag-item--all { background: #f0f7f1; color: #40834d; }
.feature-top__category--travel .feature-top__tag-item--all:hover { background: #e1f0e3; color: #2d6338; }

/* 全国の自治体が届ける特集 */
.feature-top__municipal-section {
  margin-top: 80px;
  padding: 32px 24px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e9ecef;
}
.feature-top__municipal-header-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: #2b569a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.feature-top__municipal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-top__municipal-card-structured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e5ec;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-top__municipal-card-structured:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.feature-top__municipal-card-header {
  padding: 8px 12px;
  background: #f1f4f9;
  border-bottom: 1px solid #e2e5ec;
  font-size: 12px;
  font-weight: 800;
  color: #2b569a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-top__municipal-card-img {
  aspect-ratio: 330 / 218;
  overflow: hidden;
}
.feature-top__municipal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-top__municipal-card-title {
  padding: 10px 12px 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

/* 災害支援特集 */
.feature-top__disaster-section {
  margin-top: 60px;
  padding: 36px 28px;
  background: #ebedf0;
  border-radius: 16px;
}
.feature-top__disaster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-top__disaster-card {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.feature-top__disaster-image { aspect-ratio: 632 / 380; overflow: hidden; }
.feature-top__disaster-image img { height: 100%; object-fit: cover; transition: transform .2s ease; }
.feature-top__disaster-card:hover .feature-top__disaster-image img { transform: scale(1.03); }
.feature-top__disaster-body { padding: 14px 15px 16px; }
.feature-top__disaster-title { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 700; color: #111; }

.feature-top__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-bottom: 0;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.feature-top__more-link span { font-size: 18px; line-height: 1; }

@media(max-width:1100px){
  .feature-top__cards-col6 { grid-template-columns: repeat(4, 1fr); }
  .feature-top__cards-col5 { grid-template-columns: repeat(3, 1fr); }
  .feature-top__cards-col4 { grid-template-columns: repeat(3, 1fr); }
  .feature-top__municipal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px){
  .feature-top { padding: 12px 0 40px; }
  .feature-top__section { margin-top: 48px; }
  .feature-top__pickup-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-top__pickup-main { grid-row: auto; grid-column: span 2; aspect-ratio: 682 / 380; }
  .feature-top__section-heading-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .feature-top__section-lead { font-size: 12px; }
  .feature-top__cards-col6, .feature-top__cards-col5, .feature-top__cards-col4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-top__municipal-section { margin-top: 48px; padding: 20px 14px; }
  .feature-top__municipal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-top__disaster-section { margin-top: 48px; padding: 24px 16px; }
  .feature-top__disaster-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px){
  .feature-top__pickup-grid { grid-template-columns: 1fr; }
  .feature-top__pickup-main { grid-column: auto; }
  .feature-top__disaster-grid { grid-template-columns: 1fr; }
}
