@charset "UTF-8";
/* エコサポしまね／気まぐれ蔵書紹介
 * ウェブページの最新2冊・過去記事一覧 共通カードデザイン
 * 2026-12-02 改訂：表紙を大きく、カードの余白と文章をコンパクトに調整
 */
.elp {
  box-sizing: border-box;
  width: 100%;
  color: #333;
  font-size: 16px;
}
.elp *, .elp *::before, .elp *::after { box-sizing: border-box; }

/* 共通：PCは２列、カード内は画像左＋文章右 */
.elp .elp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.elp .elp-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e6df;
  border-radius: 12px;
}
.elp .elp-card__cover {
  position: relative;
  width: 136px;
  height: 194px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
}
/* 画像が未登録のときだけ見えるテキスト */
.elp .elp-card__cover::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  content: '画像未登録';
  background: #f4f6f3;
  color: #757b76;
  font-size: 12px;
}
.elp .elp-card__cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.elp .elp-card__content { min-width: 0; }
.elp .elp-card__title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.elp .elp-card__description {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  white-space: normal; /* 投稿概要の改行による大きな空きを防ぐ。文章は省略しない */
  overflow-wrap: anywhere;
}

/* 新着2冊の表示位置だけ：白い外枠と一覧へのリンク */
.elp--featured.page-contents-white {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 30px;
  background: #fff;
  border-radius: 18px;
}
.elp .elp-more {
  display: flex;
  justify-content: center;
  margin: 26px 0 0;
  padding: 15px;
  background: #eaf7f8;
  border-radius: 10px;
}
.elp .elp-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(350px, 100%);
  padding: 13px 22px;
  border: 1px solid #32b4bd;
  border-radius: 999px;
  background: #32b4bd;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.elp .elp-more a:hover,
.elp .elp-more a:focus-visible {
  border-color: #218f9b;
  background: #218f9b;
  color: #fff;
  text-decoration: none;
}

/* 過去記事一覧用：ページ送りは維持 */
.elp .elp-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.elp .elp-pagination:empty { display: none; }
.elp .elp-pagination a {
  display: inline-block;
  min-width: 126px;
  padding: 10px 18px;
  border: 1px solid #43aa4c;
  border-radius: 6px;
  background: #fff;
  color: #268a36;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.elp .elp-pagination a:hover,
.elp .elp-pagination a:focus-visible {
  background: #edf8ee;
  text-decoration: underline;
}

@media (max-width: 780px) {
  .elp .elp-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .elp--featured.page-contents-white { padding: 22px; }
  .elp .elp-card { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
  .elp .elp-card__cover { width: 128px; height: 182px; }
}
@media (max-width: 420px) {
  .elp--featured.page-contents-white { padding: 14px; }
  .elp .elp-card { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .elp .elp-card__cover { width: 94px; height: 134px; }
  .elp .elp-card__title { margin-bottom: 8px; font-size: 16px; }
  .elp .elp-card__description { font-size: 14px; line-height: 1.65; }
  .elp .elp-more { margin-top: 20px; padding: 12px; }
  .elp .elp-more a { width: 100%; }
}
