/* グリッド配置 */
.swwp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .swwp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 各カード */
.swwp-grid li {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}
.swwp-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* aリンク */
.swwp-grid li a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  overflow: hidden;
}

/* 画像部分 */
.swwp-thumb {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.swwp-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  border: none;
}

/* タイトル */
.swwp-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 10px 8px 4px;
  line-height: 1.4;
  word-break: break-word;
}

/* 本文（20文字＋…） */
.swwp-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 10px 10px;
  line-height: 1.5;
  min-height: 2.2em;
  word-break: break-word;
}

/* カテゴリ */
.swwp-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0 8px;
}
.swwp-cat {
  display: inline-block;
  font-size: 12px;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 3px 10px;
  transition: background-color 0.3s ease;
}
.swwp-cat:hover {
  background-color: #eee;
}

/* 「もっと見る」ボタン */
.swwp-loadmore {
  text-align: center;
  margin-top: 20px;
}
.swwp-btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.swwp-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 単一ページ */
.swwp-single {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}
.swwp-single img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ギャラリー画像 */
.work-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.work-gallery-item img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* メイン画像 */
.work-main-thumb img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* タイトル・本文 */
.work-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}
.work-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* 関連投稿 */
.swwp-related {
  margin-top: 50px;
}
.swwp-related h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #000;
  display: inline-block;
}
.swwp-related ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) {
  .swwp-related ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
.swwp-related li {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.swwp-related li:hover {
  transform: translateY(-4px);
}
.swwp-related img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
.swwp-related-title {
  padding: 8px;
  font-size: 14px;
  color: #000;
}