/* 記事コンテンツ用のスタイル */

.article-content {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1C2033;
  line-height: 1.75;
}

/* サイドバーのsticky制御 */
.sidebar-sticky-wrapper {
  align-self: start;
}

@media (min-width: 1024px) {
  .sidebar-sticky-wrapper.is-sticky {
    position: sticky;
    top: 8rem; /* 128px = pt-32 */
  }
}

/* 見出しスタイル */
.article-content h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  color: #1C2033;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-content h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  color: #1C2033;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-content h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: #1C2033;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-content h5 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #1C2033;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-content h6 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem; /* 16px */
  font-weight: 600;
  color: #1C2033;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* 段落スタイル */
.article-content p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

/* リストスタイル */
.article-content ul,
.article-content ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* リンクスタイル */
.article-content a {
  color: #1C2033;
  text-decoration: underline;
  text-decoration-color: #C5B848;
  text-underline-offset: 0.25rem;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #C5B848;
  text-decoration-color: #1C2033;
}

/* 引用スタイル */
.article-content blockquote {
  border-left: 4px solid #C5B848;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #4C4948;
}

.article-content blockquote p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* コードスタイル */
.article-content code {
  background-color: #F4F3EE;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.article-content pre {
  background-color: #F4F3EE;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

/* 画像スタイル */
.article-content img {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
}

.article-content figure {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content figcaption {
  font-size: 0.875rem;
  color: #4C4948;
  text-align: center;
  margin-top: 0.5rem;
}

/* テーブルスタイル */
.article-content table {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  text-align: left;
}

.article-content th {
  background-color: #F4F3EE;
  font-weight: 600;
}

/* 水平線 */
.article-content hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 強調テキスト */
.article-content strong {
  font-weight: 700;
  color: #1C2033;
}

.article-content em {
  font-style: italic;
}

/* 最初の段落のマージン */
.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}


.article-content.ebook li {
  margin-top: 0;
  margin-bottom: 0;
}