/* トップページだけで読む CSS（2026-12-02）
   functions.php の toubun_front_top_css で is_front_page() のときだけ読み込む */

/* 目的別の入口 */
.front-entry__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0 0 8px;
  background: #fff;
  color: #222 !important;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.4;
}
.front-entry__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 6px;
}
.front-entry__item {
  transition: background-color .35s ease;
}
.front-entry__img {
  transition: opacity .35s ease;
}
/* 2026-12-02 ホバーはふわっと：濃いめのピンクへゆっくり変える＋画像を少しだけ明るく */
.front-entry__item:hover,
.front-entry__item:active {
  background: #ff75ac;
  color: #000 !important;
}
.front-entry__item:hover .front-entry__img {
  opacity: .85;
}
.front-entry__ttl {
  font-size: 14px;
  font-weight: 700;
}
.front-entry__desc {
  margin-top: 2px;
  font-size: 12px;
  color: #444; /* 白地で 9.7:1 */
}
.front-entry__item:hover .front-entry__desc {
  color: #000;
}

/* いま読まれている記事 */
.front-popular__item {
  display: block;
  color: #222 !important;
  text-decoration: none !important;
}
.front-popular__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* 2026-12-02 ホバーは「目的からさがす」と同じ：濃いめのピンク＋画像を少し明るく */
.front-popular__item {
  height: 100%;
  padding-bottom: 6px;
  transition: background-color .35s ease;
}
.front-popular__img {
  transition: opacity .35s ease;
}
.front-popular__item:hover,
.front-popular__item:active {
  background: #ff75ac;
  color: #000 !important;
}
.front-popular__item:hover .front-popular__img {
  opacity: .85;
}
.front-popular__ttl {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  padding: 0 4px; /* 2026-12-02 文字が端にくっつかないように左右4px */
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* 一覧の最初の1件（スマホだけ画像を横幅いっぱい・その下に見出し） */
@media (max-width: 767.98px) {
  .front-lead img {
    display: block;
    width: 100%;
    height: auto;
  }
  .front-lead-body .kiji-body {
    padding-top: 8px;
    padding-bottom: 12px;
  }
}

/* 紹介文（2026-12-02 太字4行→細字1〜2行） */
.front-intro {
  margin: 0 auto 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
