/* トップページのブログセクション */
.top-blog {
  padding: 190px 0;
  background-color: var(--bg-gray);
}

.top-blog .container {
  max-width: 1200px;
  margin: 0 auto;
}

.top-blog__title {
  margin-bottom: 64px;
}

.top-blog__list {
  display: flex;
  gap: 20px;
  margin-bottom: 64px;
}

.top-blog__item {
  flex: 1;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-blog__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.top-blog__item_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.top-blog__item_img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.top-blog__item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-blog__item_content {
  padding: 24px;
}

.top-blog__item_date {
  color: var(--text-secondary);
  font-family: var(--noto-sans-jp);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: block;
  margin-bottom: 12px;
}

.top-blog__item_title {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-blog__item_excerpt {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
}

.top-blog__btn {
  text-align: center;
}

/* ブログ一覧ページ */
.page-top .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 94px 0 80px 0;
}

.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-list__item {
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-list__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-list__item_link {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.blog-list__item_link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 162, 135, 0.05), transparent);
  transition: width 0.4s ease;
  z-index: 0;
}

.blog-list__item_link:hover::before {
  width: 100%;
}

.blog-list__item_link:hover {
  transform: translateX(8px);
}

.blog-list__item_link > * {
  position: relative;
  z-index: 1;
}

.blog-list__item_img {
  width: 300px;
  min-width: 300px;
  height: 200px;
  overflow: hidden;
}

.blog-list__item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list__item_content {
  flex: 1;
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
}

.blog-list__item_date {
  color: var(--text-secondary);
  font-family: var(--noto-sans-jp);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 12px;
}

.blog-list__item_title {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  margin-bottom: 16px;
}

.blog-list__item_excerpt {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  margin-bottom: 16px;
  flex: 1;
}

.blog-list__item_meta {
  margin-top: auto;
}

.blog-list__item_category {
  display: inline-block;
  background-color: var(--base-color);
  color: var(--white);
  font-family: var(--noto-sans-jp);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
}

.blog-list__empty {
  text-align: center;
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  padding: 80px 0;
}

.blog-pagination {
  max-width: 800px;
  margin: 64px auto 0;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-block;
  padding: 8px 16px;
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers a:hover {
  background-color: var(--base-color);
  color: var(--white);
  border-color: var(--base-color);
}

.blog-pagination .page-numbers .current {
  background-color: var(--base-color);
  color: var(--white);
  border-color: var(--base-color);
}

/* ブログ詳細ページ */
.blog-single {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 0;
}

.blog-single__article {
  background-color: var(--white);
  border-radius: 10px;
  padding: 48px;
  margin-bottom: 40px;
}

.blog-single__header {
  margin-bottom: 32px;
}

.blog-single__date {
  color: var(--text-secondary);
  font-family: var(--noto-sans-jp);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: block;
  margin-bottom: 16px;
}

.blog-single__title {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  margin-bottom: 16px;
}

.blog-single__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-single__category {
  display: inline-block;
  background-color: var(--base-color);
  color: var(--white);
  font-family: var(--noto-sans-jp);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
}

.blog-single__thumbnail {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
}

.blog-single__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-single__content {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
}

.blog-single__content h2 {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  margin-top: 40px;
  margin-bottom: 16px;
}

.blog-single__content h3 {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-single__content p {
  margin-bottom: 16px;
}

.blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
}

.blog-single__content a {
  color: var(--base-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.blog-single__content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--base-color);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-single__content a:hover {
  color: #0b8a73;
}

.blog-single__content a:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.blog-single__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding: 24px;
  background-color: var(--white);
  border-radius: 10px;
}

.blog-single__nav_prev a,
.blog-single__nav_next a {
  color: var(--text-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.blog-single__nav_prev a::before,
.blog-single__nav_next a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--base-color);
  transition: width 0.3s ease;
}

.blog-single__nav_prev a:hover,
.blog-single__nav_next a:hover {
  color: var(--base-color);
  transform: translateX(4px);
}

.blog-single__nav_prev a:hover::before,
.blog-single__nav_next a:hover::before {
  width: 100%;
}

.blog-single__back {
  text-align: center;
}

.blog-single__back_link {
  display: inline-block;
  color: var(--base-color);
  font-family: var(--noto-sans-jp);
  font-size: 16px;
  text-decoration: none;
  padding: 12px 32px;
  border: 2px solid var(--base-color);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.blog-single__back_link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--base-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.blog-single__back_link:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 162, 135, 0.3);
}

.blog-single__back_link:hover::before {
  left: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .top-blog {
    padding: 121px 0;
  }

  .top-blog .container {
    max-width: 335px;
  }

  .top-blog__title {
    margin-bottom: 32px;
  }

  .top-blog__list {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
  }

  .top-blog__item_img {
    height: 180px;
  }

  .top-blog__item_content {
    padding: 20px;
  }

  .top-blog__item_title {
    font-size: 16px;
  }

  .page-top .container {
    padding: 64px 0 60px 0;
  }

  .blog-list {
    max-width: 335px;
  }

  .blog-list__item {
    margin-bottom: 32px;
  }

  .blog-list__item_link {
    flex-direction: column;
    gap: 0;
  }

  .blog-list__item_img {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }

  .blog-list__item_content {
    padding: 20px;
  }

  .blog-list__item_title {
    font-size: 20px;
  }

  .blog-single {
    max-width: 335px;
  }

  .blog-single__article {
    padding: 24px;
  }

  .blog-single__title {
    font-size: 24px;
  }

  .blog-single__nav {
    flex-direction: column;
    gap: 16px;
  }

  .blog-single__back_link {
    width: 100%;
    text-align: center;
  }
}

