/*
 * SIM比較ラボ /articles/ の投稿一覧1ページ目専用。
 * PHP側でも is_home() && ! is_paged() のときだけ読み込む。
 */

body.blog #list.list.ect-entry-card.front-page-type-index > .sl-articles-index,
body.blog #list.list.ect-entry-card.front-page-type-index > .sl-articles-index__latest {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.blog .sl-articles-index,
body.blog .sl-articles-index *,
body.blog .sl-articles-index *::before,
body.blog .sl-articles-index *::after {
  box-sizing: border-box;
}

body.blog .sl-articles-index {
  --sl-index-green-950: #0b3d2b;
  --sl-index-green-900: #14532d;
  --sl-index-green-800: #166534;
  --sl-index-green-100: #dcfce7;
  --sl-index-mint-50: #f2fbf5;
  --sl-index-ink: #173426;
  --sl-index-muted: #4b6255;
  --sl-index-line: #d5e7da;
  margin: 0 0 30px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--sl-index-line);
  border-radius: 22px;
  color: var(--sl-index-ink);
  background:
    radial-gradient(circle at 94% 0%, rgba(220, 252, 231, 0.88) 0 8%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, var(--sl-index-mint-50) 100%);
  box-shadow: 0 14px 36px rgba(11, 61, 43, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.blog .sl-articles-index a {
  text-decoration: none;
}

body.blog .sl-articles-index a:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 3px;
}

body.blog .sl-articles-index h2,
body.blog .sl-articles-index h3,
body.blog .sl-articles-index p {
  margin-top: 0;
}

body.blog .sl-articles-index h2,
body.blog .sl-articles-index h3 {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
  color: var(--sl-index-green-950);
  background: transparent;
  line-height: 1.4;
}

body.blog .sl-articles-index__heading {
  max-width: 650px;
  margin-bottom: 22px;
}

body.blog .sl-articles-index__heading .sl-articles-index__eyebrow {
  margin-bottom: 5px;
  color: var(--sl-index-green-800);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

body.blog .sl-articles-index__heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: 0.01em;
}

body.blog .sl-articles-index__heading > p:last-child {
  margin-bottom: 0;
  color: var(--sl-index-muted);
  font-size: 0.96rem;
}

body.blog .sl-articles-index__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.blog .sl-articles-index__route-card {
  min-width: 0;
  min-height: 246px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--sl-index-line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 61, 43, 0.055);
}

body.blog .sl-articles-index__route-card:hover {
  border-color: #a8cfb5;
  box-shadow: 0 12px 26px rgba(11, 61, 43, 0.1);
}

body.blog .sl-articles-index__chip {
  margin-bottom: 13px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sl-index-green-900);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
}

body.blog .sl-articles-index__route-card h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

body.blog .sl-articles-index__route-card p {
  margin-bottom: 18px;
  color: var(--sl-index-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

body.blog .sl-articles-index__route-card > a {
  margin-top: auto;
  color: var(--sl-index-green-800);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.blog .sl-articles-index__route-card > a:hover {
  color: var(--sl-index-green-950);
}

body.blog .sl-articles-index__categories {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.blog .sl-articles-index__categories a {
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #bcd8c5;
  border-radius: 12px;
  color: var(--sl-index-green-950);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.4;
}

body.blog .sl-articles-index__categories a:hover {
  border-color: var(--sl-index-green-800);
  background: #ffffff;
}

body.blog .sl-articles-index__diagnosis {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--sl-index-line);
  color: var(--sl-index-muted);
  font-size: 0.85rem;
  text-align: center;
}

body.blog .sl-articles-index__diagnosis a {
  color: var(--sl-index-green-800);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.blog #list.list.ect-entry-card.front-page-type-index > .sl-articles-index__latest {
  margin: 4px 0 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid #d8e8dc;
  color: #0b3d2b;
  background: transparent;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
}

@media screen and (max-width: 1023px) {
  body.blog .sl-articles-index__routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.blog .sl-articles-index__route-card:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }

  body.blog .sl-articles-index__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  body.blog .sl-articles-index {
    margin-bottom: 24px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  body.blog .sl-articles-index__routes,
  body.blog .sl-articles-index__categories {
    grid-template-columns: minmax(0, 1fr);
  }

  body.blog .sl-articles-index__route-card,
  body.blog .sl-articles-index__route-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 18px;
  }

  body.blog .sl-articles-index__categories a {
    min-height: 46px;
  }

  body.blog .sl-articles-index__diagnosis {
    text-align: left;
  }
}
