.body-wrapper {
  width: 100%;
}

.blog-post-wrapper {
  padding: 40px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: min(100%, 680px);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  box-sizing: border-box;
}

body .body-wrapper .blog-post-wrapper,
body.hs-inline-edit .body-wrapper .blog-post-wrapper,
body.hs-content-id-0 .body-wrapper .blog-post-wrapper {
  margin-left: auto;
  margin-right: auto;
}

.blog-post-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-post-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-post-category {
  padding: 8px 16px;
  background-color: #0b285a;
  border-radius: 30px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.blog-post-date {
  color: #bbbbbb;
  font-size: 12px;
  letter-spacing: 1px;
}

.blog-post-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #333333;
  margin: 0;
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #333333;
}

.blog-post-body h2 {
  background-color: #0b285a;
  color: #ffffff;
  padding: 15px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  margin: 40px 0 20px 0;
}

.blog-post-body h3 {
  background-color: #f7f7f7;
  border-left: 5px solid #0b285a;
  padding: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 1px;
  margin: 30px 0 15px 0;
}

.blog-post-body p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.related-posts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
}

.related-posts-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #333333;
  margin: 0;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-post-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  text-decoration: none;
  color: #333333;
}

.related-post-image {
  width: 130px;
  height: 72px;
  object-fit: cover;
}

.related-post-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 1px;
}

.toc-container {
  padding: 20px;
  background: #f9f9f9;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  outline: 1px solid #f5f5f5;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Noto Sans JP", sans-serif;
  margin: 20px 0;
}

.toc-header {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 1px;
  color: #333333;
}

.toc-list,
.toc-sublist {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.toc-list {
  list-style: decimal;
  gap: 18px;
  padding-left: 1.8em;
}

.toc-h2 {
  padding-left: 0.2em;
}

.toc-h2 > a {
  display: inline;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: #333333;
  text-decoration: none;
}

.toc-sublist {
  list-style: lower-alpha;
  padding-left: 1.6em;
  margin-top: 10px;
  gap: 8px;
}

.toc-h3 > a {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: #333333;
  text-decoration: none;
}

.toc-h2 > a:hover,
.toc-h3 > a:hover {
  text-decoration: underline;
}

.toc-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #777777;
}