/*
 * Facebook読み込み
 */

/* サンプル用CSS（本番環境では削除） */
.news-wrap *,
.news-wrap *::before,
.news-wrap *::after {
  box-sizing: border-box;
}
.news-wrap {
  margin-top: 15px;
  line-height: 1.5;
}

/* 記事一覧 */
.news__list {
  margin: -0.25rem;
}

/* 記事外枠（枠サイズと間隔指定） */
.news__item {
  padding: 0.25rem;
  width: 50%;
}

/* ※本番環境のブレイクポイントに合わせてください */
@media (min-width:  576px) { .news__item { width: calc(100% / 3); } }
@media (min-width:  768px) { .news__item { width: calc(100% / 4); } }
@media (min-width:  992px) { .news__item { width: calc(100% / 5); } }
@media (min-width: 1200px) { .news__item { width: calc(100% / 6); } }

.news__item a {
	background: #543f32;
  border-radius: 0.25rem;
  color: #fff;
  display: block;
  font-size: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.4s;
}
.news__item a:hover {
  opacity: 0.9;
}

/* 画像 */
.news__picture {
  margin: 0;
}
.news__picture img {
  display: block;
  width: 100%;
}

/* 本文 */
.news__message {
  margin: 0;
  padding: 0.5rem;
}

/* 日付 */
.news__created {
  border-top: 1px solid #666666;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0.5rem;
}

/* 読み込みボタン */
.news__nav {
  margin:20px 0;
  text-align: center;
}
.news__nav a {
  background: #333333;
  border-radius: 0.25rem;
  color: #ffffff;
  display: inline-block;
  padding: 1rem;
  text-decoration: none;
}
.news__nav a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2f1";
  margin-right:10px;
  display: inline-block;
  margin-right:10px;
}

/* 読み込み中 */
.news--loading .news__nav a::before {
  animation: news--loading 1s linear infinite;
}
@keyframes news--loading {
  100% { transform: rotate(360deg); }
}

/* 読み込み完了 */
.news--page-last .news__nav a {
  color: #666666;
  font-size: 0;
  pointer-events: none;
}
.news--page-last .news__nav a::after {
  content: '読み込み完了';
}
