@charset "UTF-8";
html {
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.common_wrap {
  margin: 50px 0px;
}

.common_wrap .sub_title {
  text-align: justify;
  margin-bottom: 15px;
  font-size: 2rem;
}
/*------ 関連記事 -----*/
.related-posts {
  padding-top: 50px;
  border-top: 1px solid #ddd;
}

.related-posts_inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related-posts_header {
  margin-bottom: 32px;
}

.related-posts_title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
}

.related-posts_lead {
  margin-top: 8px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

.related-posts_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  height: 100%;
}

.related-card_link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.related-card_link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.related-card_thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.related-card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.related-card_link:hover .related-card_thumb img {
  transform: scale(1.05);
}

.related-card_body {
  padding: 18px 18px 20px;
}

.related-card_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.related-card_cat {
  display: inline-block;
  padding: 4px 10px;
  background: #f2f4f7;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.related-card_date {
  color: #777;
  font-size: 0.8rem;
  line-height: 1.4;
}

.related-card_title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

.related-card_more {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}
@media screen and (max-width: 767px) {
  .related-posts {
    margin-top: 56px;
    padding-top: 32px;
  }

  .related-posts_header {
    margin-bottom: 24px;
  }

  .related-posts_title {
    font-size: 1.5rem;
  }

  .related-posts_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-card_body {
    padding: 14px 14px 16px;
  }
}

/*---------- 記事ページ ---------*/

.single_wrap {
  max-width: 860px;
  margin: 0 auto;
}

.single_wrap h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
}
.single_meta {
  margin: 5px 0px 5px;
}
.single_wrap h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  padding: 10px;
  margin: 20px 0px;
}
.single_wrap h3 {
  font-size: clamp(2rem, 2.5vw, 2.1rem);
  margin-bottom: 15px;
  padding: 10px;
}

.single_wrap .single_meta ul {
  display: flex;
  justify-content: space-between;
}

.single_wrap .single_meta ul li a {
  line-height: 1;
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  color: #0293ad;
  border: 1px solid #0293ad;
  color: #0293ad;
  text-decoration: none;
}

.single_wrap img {
  max-width: 100%;
  height: auto;
  margin: 50px 0px 30px;
}

.single_wrap figcaption {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.single_wrap pre {
  color: #ffff;
  background-color: #21213b;
  padding: 3rem 2rem;
  margin: 2rem 0px;
  border-radius: 0.5rem;
  overflow: visible;
  white-space: pre-wrap;
}

/*------------  カテゴリー一覧 -----------*/

.category-list {
}

.category-list ul {
}

.category-list ul li {
  display: inline-block;
  margin: 0.4rem 0.7rem 0.4rem 0;
}

.category-list ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.2rem;
  color: hsl(0, 0%, 88%);
  text-transform: capitalize;
}

/*---------------パンくず----------------------*/
.breadcrumb {
  margin: 24px 0;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: #666;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #aaa;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 0.6;
}

.breadcrumb li:last-child {
  color: #999;
}
